* Check that $key is a key of $array (conformity to php<4.1.0)
*
* @param string $key
* @param array $array
* @param integer $type 0 - return true if $key is $array's key, 1 - return true if $key is $array's key and there isn't any occurrence of $key in another $array's key
* @return boolean true when $key is a key of $array, or false
* @access private
*/
function _keyExists($key,$array,$type) {
$keys = array_keys($array);
if($type == 1) {
$count = 0;
while (list($keys_key, $keys_val) = each($keys)) {